﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Rose.Models.NewTrendModel>" %>

<%@ Import Namespace="Rose.Helper" %>
<%var item = Model; %>

<div class="trend" data="<%=item.Id %>">
<div class="imagepart"><img src="<%=item.ImagePath %>" data="<%=item.UserId %>" onclick="FriendAlbum(this);"  class="headimage"/>
<%if (item.Type == 3)
  { %>
    <img src="<%=ReturnImageHelpModel.ReturnImage(item.Title) %>" class="feelimage" />
<%} %>
</div>


<div class="trendcontent">
<%if (item.Type == 0)
  { %>
  <p class="headline"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=item.UserId}) %>"><span><%=item.Name %></span></a>发表文章<a target="_blank" class="pointer" onclick="SeeArticle(this);" articledata="<%=item.Link %>"><span><%=item.Title %></span></a></p>
  <p class="contentline"><%=item.Content %></p>
<p class="commentline"><span><%=item.CreateTime %></span><span onclick="GetComment(this);" class="articlecm pointer">评论（<%=item.CommentCount %>）</span></p>

<%} %>

<%else if (item.Type == 1)
    { %>
   <p class="headline"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=item.UserId}) %>"><span><%=item.Name %></span></a>分享链接<a target="_blank" href="<%=item.Link %>"><span><%=item.Title %></span></a></p>
  <p class="contentline"><%=item.Content %></p>
<p class="commentline"><span><%=item.CreateTime %></span></p>
<%} %>

<%else if(item.Type==2){ %>
    <p class="headline"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=item.UserId}) %>"><span><%=item.Name %></span></a>上传相片到<a target="_blank"  onclick="AlbumPhoto(this);" data="<%=item.Link %>"><span><%=item.Title %></span></a></p>
    <p class="contentline"><a><img class="photo" onclick="BigPhoto(this);" src="<%=item.PhotoPath %>"/></a></p>
    <p class="commentline"><span><%=item.CreateTime %></span><span>相片（<%=item.CommentCount %>）</span></p>
<%} %>

<%else if (item.Type == 3)
    { %>
   <p class="headline"><a href="<%=Url.Action("Friend","FriendTrend",new{friendId=item.UserId}) %>"><span><%=item.Name %></span></a>记下心情<a target="_blank" href="<%=item.Link %>"><span><%=item.Title %></span></a></p>
   <p class="contentline"><%=item.Content %></p>
   <p class="commentline"><span><%=item.CreateTime %></span><span onclick="GetComment(this);" class="feelingcm pointer">评论（<%=item.CommentCount %>）</span></p>
<%} %>


</div>
</div>